<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="admin.faqcreateanswer.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

</head>

<body>
<%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/admin/faq/faq_menu.jsp" />
		</td>
	</tr>
</table>

<div class="contentArea">
<table border=0 cellpadding=0 cellspacing=0 width=70% align="center">
	<tr>
		<td valign="top"></td>
		<td valign="top">
		<table border="0" cellpadding="5" cellspacing="5" width="100%" align="center">

			<tr>
				<td colspan="2">
				<form:form commandName="newAnswer" method="post" onsubmit="return validateForm()">
					<table width=70% class="formTable" cellpadding="5" cellspacing="5">
						<tr>
							<td colspan="2" align="center"><h3><spring:message code="admin.faqcreateanswer.label.writenewfaq" />.</h3></td>
						</tr>
										 
						<tr>
							<td><spring:message code="admin.faqcreateanswer.label.subject" /><font color=red>*</font></td>
							<td><form:input path="subject" size="80" />
							<div class="errors"><form:errors path="subject" /></div>
							</td>
						</tr>	
							
						<tr>
							<td colspan="2"><spring:message code="admin.faqcreateanswer.label.content" /><font color=red>*</font></td>
						</tr>
																		
						<tr>							
							<td colspan="2"><form:textarea path="answer" cols="70" rows="20"/>
							<div class="errors"><form:errors path="answer" /></div>
							</td>
						</tr>

						<tr>
							<td colspan="2">
								<spring:message code="admin.faqcreateanswer.label.rankintop" />:
								<form:select path="topRank">
									<form:option value="0">0</form:option>
									<form:option value="1">1</form:option>
									<form:option value="2">2</form:option>
									<form:option value="3">3</form:option>
									<form:option value="4">4</form:option>
									<form:option value="5">5</form:option>
									<form:option value="6">6</form:option>
									<form:option value="7">7</form:option>
									<form:option value="8">8</form:option>
									<form:option value="9">9</form:option>
									<form:option value="10">10</form:option>
								</form:select> 
							</td>
						</tr>
																		
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>

						<tr>
							<td colspan="2" align="center"><input type="submit" class='ui-button ui-state-default ui-corner-all'
								id="createPayee" value="<spring:message code="admin.faqcreateanswer.button.save" />" /> <input type="button" class='ui-button ui-state-default ui-corner-all'
								value="<spring:message code="admin.faqcreateanswer.button.cancel" />" onclick="location.href='faq_answer.htm'" /></td>
						</tr>
						

												
					</table>
				</form:form></td>
			</tr>
		</table>
		</td>
	</tr>

	<script language="javascript">
		function validateForm() {
			return validate_required(document.getElementById("subject"),'Please enter subject')
				&& validate_required(document.getElementById("answer"),'Please enter content');
		}
	</script>

</table>
</div>

<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>